package com.mts.indicatorserver

import com.mts.Person
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.autoconfigure.domain.EntityScan
import org.springframework.boot.runApplication
import org.springframework.context.annotation.ComponentScan
import org.springframework.data.jpa.repository.config.EnableJpaRepositories

/**
 * Created on 2025/8/20 14:55.
 * @author Johnny
 */
@EnableJpaRepositories(basePackages = ["com.mts.indicatorjpa.*.repository"])
@EntityScan(basePackages = ["com.mts.indicatorjpa.*.entity"])
@ComponentScan(basePackages = ["com.mts"])
@SpringBootApplication
class IndicatorServerApplication

fun main(args: Array<String>) {
    val person = Person()
    person.id = 100
    person.name = "johnny"
    println(person)
    runApplication<IndicatorServerApplication>(*args)
}